Constrained Partial Deduction and the Preservation of Characteristic Trees Constrained Partial Deduction and the Preservation of Characteristic Trees
نویسندگان
چکیده
Partial deduction strategies for logic programs often use an abstraction operator to guarantee the niteness of the set of goals for which partial deductions are produced. Finding an abstraction operator which guarantees niteness and does not lose relevant informationis a diicult problem. In earlier work Gallagher and Bruynooghe proposed to base the abstraction operator on characteristic paths and trees, which capture the structure of the generated incomplete SLDNF-tree for a given goal. In this paper we exhibit the advantages of characteristic trees over purely syntactical measures: if characteristic trees can be preserved upon generali-sation, then we obtain an almost perfect abstraction operator, providing just enough polyvariance to avoid any loss of local specialisation. Unfortunately, the abstraction operators proposed in earlier work do not always preserve the characteristic trees upon generalisation. We show that this can lead to important specialisation losses as well as to non-termination of the partial deduction algorithm. Furthermore, this problem cannot be adequately solved in the ordinary partial deduction setting. We therefore extend the expressivity and precision of the Lloyd and Shep-herdson partial deduction framework by integrating constraints. We provide formal correctness results for the so obtained generic framework of constrained partial deduction. Within this new framework we are, among others, able to overcome the above mentioned problems by introducing an alternative abstraction operator, based on so called pruning constraints. We thus present a terminating partial deduction strategy which, for purely determinate unfolding rules, induces no loss of local specialisation due to the abstraction while ensuring correctness of the specialised programs. This is a revised version of CW 199 and CW 215. Abstract Partial deduction strategies for logic programs often use an abstraction operator to guarantee the niteness of the set of goals for which partial deductions are produced. Finding an abstraction operator which guarantees niteness and does not lose relevant information is a diicult problem. In earlier work Gallagher and Bruynooghe proposed to base the abstraction operator on characteristic paths and trees, which capture the structure of the generated incomplete SLDNF-tree for a given goal. In this paper we exhibit the advantages of characteristic trees over purely syntactical measures: if characteristic trees can be preserved upon generalisation, then we obtain an almost perfect abstraction operator, providing just enough polyvariance to avoid any loss of local specialisation. Unfortunately, the abstraction operators proposed in earlier work do not always preserve the characteristic trees upon generalisation. We show that …
منابع مشابه
Ecological Partial Deduction : Preserving Characteristic
A partial deduction strategy for logic programs usually uses an abstraction operation to guarantee the niteness of the set of atoms for which partial deductions are produced. Finding an abstraction operation which guarantees niteness and does not loose relevant information is a diicult problem. In earlier work Gallagher and Bruynooghe proposed to base the abstraction operation on characteristic...
متن کاملGlobal Control for Partial Deduction through Characteristic Atoms and Global Trees
Recently, considerable advances have been made in the (online) control of logic program specialisation. A clear conceptual distinction has been established between local and global control and on both levels concrete strategies as well as general frameworks have been proposed. For global control in particular, recent work has developed concrete techniques based on the preservation of characteri...
متن کاملAn Almost Perfect Abstraction Operator for Partial Deduction
A partial deduction strategy for logic programs usually uses an abstraction operator to guarantee the niteness of the set of goals for which partial deductions are produced. Finding an abstraction operator which guarantees niteness and still does not loose relevant information (with respect to the partial deduction) is a diicult problem. In 4] and 7] Gallagher and Bruynooghe proposed to base th...
متن کاملIntegrated Abstract Interpretation and Online Specialization
Interpretation vs. Program Specialization At first sight abstract interpretation and program specialization might appear to be unrelated techniques: abstract interpretation focusses on correct and precise analysis, while the main goal of program specialization is to produce more efficient specialized code (for a given task at hand). Nonetheless, it is often felt that there is a close relationsh...
متن کاملControlling Generalization and Polyvariance in Partial Deduction of Normal Logic Programs
Given a program and some input data, partial deduction computes a specialized program handling any remaining input more efficiently. However, controlling the process well is a rather difficult problem. In this article, we elaborate global control for partial deduction: for which atoms, among possibly infinitely many, should specialized relations be produced, meanwhile guaranteeing correctness a...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1997